package tw.com.softleader.spring.app;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import tw.com.softleader.spring.helper.MovieHelper;

public class MovieApp {
	private static Logger log = LoggerFactory.getLogger(MovieApp.class);
	public static void main(String[] args) {
		
		ApplicationContext applicationContext = 
				new ClassPathXmlApplicationContext(new String[]{"spring-movie.xml"});
		
		MovieHelper movieHelper = (MovieHelper)applicationContext.getBean("movieHelper");
		
		log.debug(movieHelper.getAll().toString());
	}
}
